package com.qf.forumproject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (QfBlog)实体类
 *
 * @author Manchi
 * @since 2022-07-23 11:41:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("博客实体类")
public class QfBlog implements Serializable {
    private static final long serialVersionUID = -81668035840373672L;
    /**
     * 自增id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 博客id
     */
    private String bid;
    /**
     * 博客标题
     */
    private String title;
    /**
     * 博客内容
     */
    private String content;

    /**
     * 浏览量
     */
    private Integer views;
    /**
     * 作者id
     */
    private Integer authorId;
    /**
     * 问题分类id
     */
    private Integer categoryId;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtUpdate;

}
